package com.wolf.gulimall.member.feign;

import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 订单服务远程调用
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    /**
     * 查询登录用户订单详情数据
     *
     * @param params 参数
     * @return 订单详情数据
     */
    @PostMapping("/order/order/listWithItem")
    R listWithItem(@RequestBody Map<String, Object> params);
}
